package com.md.linsiyin;

import java.util.Scanner;

public class Demo3 {
public static void main(String[] args) {
	Scanner scanner = new Scanner(System.in);
	System.out.println("请入一个年份：");
	int a = scanner.nextInt();
	
	if (a<1000 | a>10000) {
		System.out.println("错误的年份");
	}else {
		System.out.println("正确的年份");
	}
	if (a%4==0) {
		System.out.println(a+"闰年");
	}else {
		System.out.println(a+"不是闰年");
	}
}
}
